package com.fourhats.model;

import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="placeType")
public class PlaceType extends com.fourhats.model.Entity {

	@Column(name="name")
	private String name;
	
	@OneToMany(mappedBy="placeType")
    private Set<Place> places;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set<Place> getPlaces() {
		return places;
	}

	public void setPlaces(Set<Place> places) {
		this.places = places;
	}
}
